package com.sgj.springcloud.dao;

import com.sgj.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 沈国纪
 * @date 2021/5/4 11:32
 */
@Mapper
public interface PaymentDao {

	/**
	 * 新建订单
	 * @param payment
	 * @return
	 */
	int create(Payment payment);

	/**
	 * 根据 id 获取订单
	 * @param id
	 * @return
	 */
	Payment getPaymentById(@Param("id") Long id);
}
